package com.core.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
/**
 * 角色资源关联
 */
@TableName("role_resource")
public class RoleResource {
	/** 创建时间 */
  @TableField("`create_time`")
	private Date createTime;
	/** id */
  @TableField("`id`")
	private String id;
	/** 资源|id */
  @TableField("`resource_id`")
	private String resourceId;
	/** 角色|id */
  @TableField("`role_id`")
	private String roleId;

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return this.id;
	}
	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}
	
	public String getResourceId() {
		return this.resourceId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	
	public String getRoleId() {
		return this.roleId;
	}

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        RoleResource that = (RoleResource) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "RoleResource{" +
		"createTime=" + createTime +
		",id='" + id + "'" + 
		",resourceId='" + resourceId + "'" + 
		",roleId='" + roleId + "'" + 
                '}';
    }
	
}